//        调整头像大小
var avatar1 = $('.mui-off-canvas-left .avatar');
var w0 = avatar1.width();
var h0 = avatar1.height();
$('.mui-off-canvas-left .avatar img').jqthumb({
	width: w0,
	height: h0
});

mui('body').on('tap', 'a', aHref);
mui('.mui-bar').on('tap', 'a', showBar);

function aHref(){
    var myhref = this.getAttribute('href');
	if(myhref){
        window.location.href = myhref;
	}
}
function showBar(){
    mui('.mui-off-canvas-wrap').offCanvas().show();
}